/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package Coord.Manager;
import Coord.Entita.*;

/**
 *
 * @author vadmin
 */
public class ConnectionManager {

    private static Coord.Entita.COORDServiceSoap cli = null;
    {
        Coord.Entita.COORDService service = new Coord.Entita.COORDService();
        cli = service.getCOORDServiceSoap();
    }


public static void RequestUpdate()
{

    try {
        // TODO initialize WS operation arguments here
        java.lang.String id = "";
        Posizione p = new Posizione();
        // TODO process result here
        ArrayOfSquadra result = cli.requestUpdate(id, p);
        System.out.println("Result = "+result);
    } catch (Exception ex) {
        // TODO handle custom exceptions here
    }


}

public static void SendUpdate()
{

    try {
        // TODO initialize WS operation arguments here
        java.lang.String id = "";
        Squadra s = new Squadra();
        // TODO process result here
        boolean result = cli.sendUpdate(id, s);
        System.out.println("Result = "+result);
    } catch (Exception ex) {
        // TODO handle custom exceptions here
    }

}

public static void Init()
{

    try {
        // TODO initialize WS operation arguments here
        java.lang.String id = "";
        // TODO process result here
        ArrayOfMissione result =cli.init(id);
        System.out.println("Result = "+result);
    } catch (Exception ex) {
        // TODO handle custom exceptions here
    }

}

public static void ChooseMission()
{

    try {
        // TODO initialize WS operation arguments here
        java.lang.String id = "";
        java.lang.String idMissione = "";
        // TODO process result here
        boolean result = cli.chooseMission(id, idMissione);
        System.out.println("Result = "+result);
    } catch (Exception ex) {
        // TODO handle custom exceptions here
    }

}


}
